package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyong
 * @since 2019-11-28
 */
@TableName("score_level")
public class ScoreLevel extends Model<ScoreLevel> {

    private static final long serialVersionUID = 1L;

    /**
     * 积分-等级表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 最小分值
     */
    @TableField("min_score")
    private BigDecimal minScore;
    /**
     * 最大分值
     */
    @TableField("max_score")
    private BigDecimal maxScore;
    /**
     * 等级
     */
    private String level;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getMinScore() {
        return minScore;
    }

    public void setMinScore(BigDecimal minScore) {
        this.minScore = minScore;
    }

    public BigDecimal getMaxScore() {
        return maxScore;
    }

    public void setMaxScore(BigDecimal maxScore) {
        this.maxScore = maxScore;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ScoreLevel{" +
        ", id=" + id +
        ", minScore=" + minScore +
        ", maxScore=" + maxScore +
        ", level=" + level +
        "}";
    }
}
